using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace WebSMS.testes
{
    public partial class Criptar : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnencriptar_Click(object sender, EventArgs e)
        {
            lblEncriptou.Text  = Tools.cryp.Cryptografia.Encriptar(txtcriptar.Text, Tools.cryp.Crypto.TipoChave.Password);
        }

        protected void btndescripta_Click(object sender, EventArgs e)
        {
            lbldescriptou.Text = Tools.cryp.Cryptografia.Desencriptar(txtdescriptar.Text, Tools.cryp.Crypto.TipoChave.Password);

        }
    }
}
